package com.andy.mall.product.service;

import com.andy.mall.product.entity.ProductAttrValueEntity;
import com.andy.mall.product.vo.AttrRelationVo;
import com.andy.mall.product.vo.AttrRespVo;
import com.andy.mall.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.andy.common.utils.PageUtils;
import com.andy.mall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author guochen
 * @email guochen5188@163.com
 * @date 2020-10-28 10:50:49
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveInfo(AttrVo attr);

    PageUtils queryAttrPage(Map<String, Object> params, String type, Long catId);

    AttrRespVo getAttrRespVo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getAttrRelation(Long attrgroupId);

    void deleteRelations(AttrRelationVo[] relationVos);


    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);


    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

